<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Column extends Model
{
    //
    //关联表
    protected $table = 'columns';
    //主键
    public $primaryKey = 'id';
    //设置timesatmps为关闭
    public $timestamps = false;

    public function posts()
    {
        return $this->hasMany('App\Post');
    }
}
